// 实例化一个路由，挂载到app上
import { createRouter, createWebHashHistory } from "vue-router";
//第一种方法引用页面文件，接9-13行


const router = createRouter({
    history:createWebHashHistory(''),
    routes:[
        // 第一个下拉列表配置
        {
            path:'/fsels',
            component:()=> import('@/view/fsels.vue'),
            children:[
                {
                    path:'/fsel/:id',
                    component: ()=> import('@/view/fsel.vue')
                }
                
            ]
        },
        {
            path:'/ssels',
            component:()=> import('@/view/ssels.vue'),
            children:[
                {
                    path:'ssel/:id',
                    component:()=> import('@/view/ssel.vue')
                }
            ]
        },
        {
            path:'/tsels',
            component:()=> import('@/view/tsels.vue'),
            children:[
                {
                    path:'ssel/:id',
                    component:()=> import('@/view/tsel.vue')
                }
            ]
        },
        {
            path:'/sisels',
            component:()=> import('@/view/sisels.vue'),
            children:[
                {
                    path:'sisel/:id',
                    component:()=> import('@/view/sisel.vue')
                }
            ]
        }

       
    ]
})

export default router